﻿using System;

namespace EntityFrameworkLayer.Entities
{
    public class Material
    {
        public int Id { get; set; }

        public string SerialNumber { get; set; }

        public string Name { get; set; }

        public string Classify { get; set; }

        public float Cost { get; set; }

        public String CostUnit { get; set; }

        public int Quantity { get; set; }

        public String QuantityUnit { get; set; }

        public void Copy(Material material)
        {
            SerialNumber = material.SerialNumber;
            Name = material.Name;
            Classify = material.Classify;
            Cost = material.Cost;
            CostUnit = material.CostUnit;
            Quantity = material.Quantity;
            QuantityUnit = material.QuantityUnit;
        }
    }
}
